#ifndef _SYS_CANCELLED_ERR_H_
#define _SYS_CANCELLED_ERR_H_

#include "Err.h"
#include "SysTypes.h"

#define CANCELLED_ERR_VTABLE(self)   ((CancelledErrVTable*)((FanObj*)self)->vtable)


extern Type*    CancelledErr_classType;
extern VTable*  CancelledErr_classVTable;


/* [sys::CancelledErr] Attributes */
struct CancelledErr
{
  Err           super;
};


/* [sys::CancelledErr] Virtual-table */
typedef struct CancelledErrVTable
{
  ErrVTable     super;
} CancelledErrVTable;


/* [sys::CancelledErr] Methods and fields */
void            CancelledErr_make_0(CancelledErr* self);
void            CancelledErr_make_1(CancelledErr* self, Str* msg);
void            CancelledErr_make(CancelledErr* self, Str* msg, Err* cause);


/* [sys::ParseErr] Extra methods */
CancelledErr*   CancelledErr_new(Str* msg, Err* cause);
CancelledErr*   CancelledErr_newWithFormattedMsg(const char* msgFormat, ...);


/* [sys::CancelledErr] Type-system functions */
Type*           CancelledErr_initType(void);
VTable*         CancelledErr_initVTable(void);
void            CancelledErr_initStatic(void);


#endif
